import Mock from 'mockjs';
const count = 100;

let mallInfoList = [];
let operationalParametersList = [];// 运营参数
let sensitiveWordsList = [];// 敏感词
let baseDataList = [];// 基础数据
let benchmarkRoleList = [];// 基准角色
let jurisdictionList = [];// 权限
let menuList = [];// 菜单
let logisticsSetupList = [];// 物流设置
let businessCircleList = [];// 商圈管理
let provinceList = [];// 省管理
let cityList = [];// 市管理
let countyList = [];// 区县管理
let platFormPowerMenuList = [];// 平台权限 菜单
let platformPowerList = [];// 平台权限 权限
let departmentList = [];// 平台权限 部门
let roleList = [];// 平台权限 角色
let administratorsList = [];/// /平台权限 管理员
let reasonMangeList = [];// 原因管理
for (let i = 0; i < count; i++) {
    mallInfoList.push(Mock.mock({
        'uuid': '@increment()', // 必须项
        mallName: '@cname',
        descInfo: '@province @city @county',
        'domain|1': ['http://shop.qwang.com.cn', 'http://mall.qwang.com.cn', 'http://mobile.qwang.com.cn'],
        'mallLogo|1': [
            [{
                name: '乔布斯', // 图片name
                url: 'https://dev-file.iviewui.com/BbnuuEiM0QXNPHVCvb3E2AFrawIjCkqW/avatar' // 图片url
            }],
            [{
                name: '吕布', // 图片name
                url: 'https://dev-file.iviewui.com/userinforaP8NeQgYpmKgkpWlqZP7rfewbHiIzJY/avatar' // 图片url
            }]
        ],
        'imgTxt|1': [
            {
                image: 'https://dev-file.iviewui.com/BbnuuEiM0QXNPHVCvb3E2AFrawIjCkqW/avatar',
                name: '库克',
                nameLink: '', // name连接地址 默认为空
                shape: 'square', // 指定头像的形状，可选值为 circle、square
                size: 'large', // 设置头像的大小，可选值为 large、small、default，或者支持设置具体数值，如：80
                onlyShow: 'image' // 空字符串： 代表全部显示， image:只显示图片， text:只显示文字
            },
            {
                image: 'https://dev-file.iviewui.com/userinforaP8NeQgYpmKgkpWlqZP7rfewbHiIzJY/avatar',
                name: '乔布斯',
                nameLink: '', // name连接地址 默认为空
                shape: 'square', // 指定头像的形状，可选值为 circle、square
                size: 'large',
                onlyShow: 'image' // 空字符串： 代表全部显示， image:只显示图片， text:只显示文字

            }
        ],
        'configureState|1': ['0', '1'],
        'configureStateName|1': ['已启用', '已禁用'],
        'actions|1': [
            [
                {
                    name: 'View',
                    label: '查看',
                    handleType: 'link'
                },
                {
                    name: 'Edit',
                    label: '编辑',
                    handleType: 'link'
                },
                {
                    name: 'Prohibit',
                    label: '禁用'
                },
                {
                    name: 'Delete',
                    label: '删除'
                }
            ],
            [
                {
                    name: 'Edit',
                    label: '编辑',
                    handleType: 'link'
                },
                {
                    name: 'Enable',
                    label: '启用'
                },
                {
                    name: 'Delete',
                    label: '删除'
                }
            ]
        ]
    }))
    operationalParametersList.push(Mock.mock({
        uuid: '@increment()', // 必须项
        'mallName|1': ['订单系统', '商城系统'],
        'name': '名称' + i,
        'No': 10000 + i,
        'value': i,
        'note': '测试' + i,
        'actions|1': [
            [{
                 name: 'Edit',
                 label: '编辑',
                 handleType: 'link'
             },
             {
                 name: 'Delete',
                 label: '删除'
             }
            ]
        ]
    }))
    sensitiveWordsList.push(Mock.mock({
        uuid: '@increment()', // 必须项
        'words': '敏感词' + i,
        'level|1': ['一级', '二级', '三级'],
        'content': '替换内容' + i,
        'actions|1': [
            [{
                 name: 'Edit',
                 label: '编辑',
                 handleType: 'link'
             },
             {
                 name: 'Delete',
                 label: '删除'
             }
            ]
        ]
    }))
    baseDataList.push(Mock.mock({
        uuid: '@increment()', // 必须项
        'name|1': ['预约时间段', '退款原因'],
        'No': '10000' + i,
        'state|1': ['启用', '禁用'],
        'actions|1': [
            [{
                 name: 'Edit',
                 label: '编辑',
                 handleType: 'link'
             },
             {
                 name: 'Delete',
                 label: '删除'
             },
             {
                 name: 'Delete',
                 label: '禁用'
             },
             {
                 name: 'Delete',
                 label: '启用'
             }
            ]
        ]
    }))
    benchmarkRoleList.push(Mock.mock({
        'uuid': '@increment()', // 必须项
        'name|1': ['财务', '客服', '采购'],
        'createOpeTime': '@date(yyyy-MM-dd HH:mm:ss)', // data选择范围是 是数组形式 如：['2019-12-13,2019-12-13]
        'actions|1': [
            [{
                 name: 'Edit',
                 label: '编辑',
                 handleType: 'link'
             },
             {
                 name: 'Delete',
                 label: '删除'
             }, {
                 name: 'Relevance',
                 label: '关联角色'
             }
            ]
        ]
    }))
    jurisdictionList.push(Mock.mock({
        'uuid': '@increment()', // 必须项
        'name|1': ['子门店管理', '手机端模jurisdictionList板', '移动端配置'],
        'expression|1': ['storebranch', 'mobilebranch', 'appbranch'],
        'isUse|1': ['启用', '禁用'],
        'type|1': ['菜单权限', '按钮权限'],
        'menu|1': ['手机端模板', '移动端模板', '皮肤管理'],
        'actions|1': [
            [{
                 name: 'Edit',
                 label: '编辑',
                 handleType: 'link'
             },
             {
                 name: 'Delete',
                 label: '删除'
             }
            ]
        ]
    }))
    menuList.push(Mock.mock({
        'uuid': '@increment()', // 必须项
        'name|1': ['交易数据分析', '商家运营概况', '商品销售分析'],
        'link|1': ['storeback/businessoveview', 'storeback/transactiondataanalysis/toReport', 'storeback/businessoveview/toReport'],
        'orderBy': i + 1,
        'parentMenu|1': ['报表系统>报表管理', '系统设置>商城设置'],
        'isShow|1': ['是', '否'],
        'actions|1': [
            [{
                 name: 'Edit',
                 label: '编辑',
                 handleType: 'link'
             },
             {
                 name: 'Delete',
                 label: '删除'
             }
            ]
        ]
    }))
    logisticsSetupList.push(Mock.mock({
        'uuid': '@increment()', // 必须项
        'company|1': ['韵达快递', '申通快递', '天天快递', '顺分快递'],
        'companyNo': '1000' + i,
        'people': '@cname',
        'phone': '@increment(15165080808)',
        'isUse|1': ['启用', '禁用'],
        'actions|1': [
            [{
                 name: 'Edit',
                 label: '编辑',
                 handleType: 'link'
             }, {
                 name: 'Edit',
                 label: '启用',
                 handleType: 'link'
             },
             {
                 name: 'Delete',
                 label: '禁用'
             }
            ]
        ]
    }))
    businessCircleList.push(Mock.mock({
        'uuid': '@increment()', // 必须项
        'name': 'XXX商圈',
        'area': '@county',
        'city': '@city',
        'address': '@province @city @county',
        'isUse|1': ['启用中', '禁用'],
        'actions|1': [
            [{
                 name: 'Edit',
                 label: '编辑',
                 handleType: 'link'
             },
             {
                 name: 'Delete',
                 label: '未启用'
             }
            ]
        ]
    }))
    provinceList.push(Mock.mock({
        'uuid': '@increment()', // 必须项
        'name': '@province',
        'code': '@zip',
        'actions|1': [
            [{
                 name: 'Edit',
                 label: '编辑',
                 handleType: 'link'
             },
             {
                 name: 'Delete',
                 label: '删除'
             }
            ]
        ]
    }))
    cityList.push(Mock.mock({
        'uuid': '@increment()', // 必须项
        'name': '@city',
        'code': '@zip',
        'province': '@province',
        'actions|1': [
            [{
                 name: 'Edit',
                 label: '编辑',
                 handleType: 'link'
             },
             {
                 name: 'Delete',
                 label: '删除'
             }
            ]
        ]
    }))
    countyList.push(Mock.mock({
        'uuid': '@increment()', // 必须项
        'name': '@county',
        'code': '@zip',
        'city': '@city',
        'actions|1': [
            [{
                 name: 'Edit',
                 label: '编辑',
                 handleType: 'link'
             },
             {
                 name: 'Delete',
                 label: '删除'
             }
            ]
        ]
    }))
    platFormPowerMenuList.push(Mock.mock({
        'uuid': '@increment()', // 必须项
        'name|1': ['报名处理', '头衔管理', '数据概况', '频道管理'],
        'link': '@url',
        'orderBy': i + 1,
        'parentMenu|1': ['营销>平台促销', '会员>会员等级', '数据', '内容>频道管理'],
        'isShow|1': ['是', '否'],
        'actions|1': [
            [{
                 name: 'Edit',
                 label: '编辑',
                 handleType: 'link'
             },
             {
                 name: 'Delete',
                 label: '删除'
             }
            ]
        ]
    }))
    platformPowerList.push(Mock.mock({
        'uuid': '@increment()', // 必须项
        'name|1': ['报名处理', '头衔管理', '数据概况', '频道管理'],
        'el': '@url',
        'type|1': ['菜单权限', '按钮权限'],
        'menu|1': ['平台促销', '会员等级', '订单统计', '频道管理'],
        'isUse|1': ['是', '否'],
        'actions|1': [
            [{
                 name: 'Edit',
                 label: '编辑',
                 handleType: 'link'
             },
             {
                 name: 'Delete',
                 label: '删除'
             }
            ]
        ]
    }))
    departmentList.push(Mock.mock({
        'uuid': '@increment()', // 必须项
        'name': '管理部门' + i,
        'createOpeTime': '@date(yyyy-MM-dd HH:mm:ss)',
        'actions|1': [
            [{
                name: 'Edit',
                label: '编辑',
                handleType: 'link'
            }, {
                name: 'Delete',
                label: '删除'
            }, {
                name: 'Relevance',
                label: '关联角色',
                handleType: 'link'
            }
            ]
        ]
    }))
    roleList.push(Mock.mock({
        'uuid': '@increment()', // 必须项
        'name|1': ['管理员', '审核员', '浏览者'],
        'createOpeTime': '@date(yyyy-MM-dd HH:mm:ss)',
        'actions|1': [
            [{
                name: 'Delete',
                label: '删除'
            }, {
                name: 'Edit',
                label: '编辑',
                handleType: 'link'
            }, {
                name: 'Relevance',
                label: '关联权限',
                handleType: 'link'
            }
            ]
        ]
    }))
    administratorsList.push(Mock.mock({
        'uuid': '@increment()', // 必须项
        'ID': 'admin' + i,
        'name|1': ['超级管理员', '高级管理员', '普通管理员'],
        'depart|1': ['总经理', '财务部', '采购部', '商务部'],
        'phone': '@increment(10000000000)',
        'isUse|1': ['是', '否'],
        'createOpeTime': '@date(yyyy-MM-dd HH:mm:ss)',
        'actions|1': [
            [{
                name: 'Delete',
                label: '删除'
            }, {
                name: 'Edit',
                label: '编辑',
                handleType: 'link'
            }, {
                name: 'Relevance',
                label: '关联权限',
                handleType: 'link'
            }
            ]
        ]
    }))
    reasonMangeList.push(Mock.mock({
        'uuid': '@increment()', // 必须项
        'code': 'admin' + i,
        'name': '@word',
        'type|1': ['用户退货原因', '商品审核驳回原因', '平台强制下架原因'],
        'isUse|1': ['0', '1'],
        'isUseStr|1': ['启用', '禁用'],
        'actions|1': [
            [{
                name: 'View',
                label: '查看',
                handleType: 'link'
            }, {
                name: 'Edit',
                label: '编辑',
                handleType: 'link'
            }, {
                name: 'Prohibit',
                label: '禁用',
                handleType: 'alert'
            }
            ]
        ]
    }))
}

export default [
    {
        path: '/api/getMallInfoList',
        method: 'get',
        handle ({ body }) {
            const start = body.pageInfo.nowPage * body.pageInfo.pageShow - body.pageInfo.pageShow;
            const end = start + body.pageInfo.pageShow;
            let data = {
                return_code: 0,
                list: [...mallInfoList].slice(start, end),
                pageInfo: {
                    nowPage: 1, // 当前页数
                    pageShow: body.pageInfo.pageShow, // 每页显示条数
                    totalPage: count / body.pageInfo.pageShow, // 总页数
                    totalNum: count // 总条数
                }
            }
            if (body.pageInfo.nowPage) {
                return {
                    code: 0,
                    msg: '获取数据成功',
                    data: data
                }
            } else {
                return {
                    code: 401,
                    msg: '接口请求超时',
                    data: {}
                }
            }
        }
    },
    {
        path: '/api/getMallInfo',
        method: 'get',
        handle ({ body }) {
            if (body.uuid) {
                let memberInfo = {};
                for (let i = 0; i < mallInfoList.length; i++) {
                    if (Number(body.uuid) === mallInfoList[i].uuid) {
                        memberInfo = mallInfoList[i];
                        break;
                    }
                }

                return {
                    code: 0,
                    msg: '',
                    data: {
                        data: memberInfo,
                        return_code: 0
                    }
                }
            } else {
                return {
                    code: 401,
                    msg: '接口请求超时',
                    data: {}
                }
            }
        }
    },
    {

        path: '/api/addMallInfo',
        method: 'get',
        handle ({ body }) {
            if (body.userName) {
                mallInfoList.unshift(body.formData);
                return {
                    code: 0,
                    msg: '',
                    data: {
                        return_code: 0
                    }
                }
            } else {
                return {
                    code: 401,
                    msg: '接口请求超时',
                    data: {}
                }
            }
        }
    }, {
        path: '/api/getOperationalParametersList',
        method: 'get',
        handle ({ body }) {
            const start = body.pageInfo.nowPage * body.pageInfo.pageShow - body.pageInfo.pageShow;
            const end = start + body.pageInfo.pageShow;
            let data = {
                return_code: 0,
                list: [...operationalParametersList].slice(start, end),
                pageInfo: {
                    nowPage: 1, // 当前页数
                    pageShow: body.pageInfo.pageShow, // 每页显示条数
                    totalPage: count / body.pageInfo.pageShow, // 总页数
                    totalNum: count // 总条数
                }
            }
            if (body.pageInfo.nowPage) {
                return {
                    code: 0,
                    msg: '获取数据成功',
                    data: data
                }
            } else {
                return {
                    code: 401,
                    msg: '接口请求超时',
                    data: {}
                }
            }
        }
    }, {
        path: '/api/getOperationalParameters',
        method: 'get',
        handle ({ body }) {
            if (body.uuid) {
                let memberInfo = {};
                for (let i = 0; i < operationalParametersList.length; i++) {
                    if (Number(body.uuid) === operationalParametersList[i].uuid) {
                        memberInfo = operationalParametersList[i];
                        break;
                    }
                }

                return {
                    code: 0,
                    msg: '',
                    data: {
                        data: memberInfo,
                        return_code: 0
                    }
                }
            } else {
                return {
                    code: 401,
                    msg: '接口请求超时',
                    data: {}
                }
            }
        }
    },
    {

        path: '/api/addOperationalParameters',
        method: 'get',
        handle ({ body }) {
            if (body.userName) {
                operationalParametersList.unshift(body.formData);
                return {
                    code: 0,
                    msg: '',
                    data: {
                        return_code: 0
                    }
                }
            } else {
                return {
                    code: 401,
                    msg: '接口请求超时',
                    data: {}
                }
            }
        }
    }, {
        path: '/api/getSensitiveWordsList',
        method: 'get',
        handle ({ body }) {
            const start = body.pageInfo.nowPage * body.pageInfo.pageShow - body.pageInfo.pageShow;
            const end = start + body.pageInfo.pageShow;
            let data = {
                return_code: 0,
                list: [...sensitiveWordsList].slice(start, end),
                pageInfo: {
                    nowPage: 1, // 当前页数
                    pageShow: body.pageInfo.pageShow, // 每页显示条数
                    totalPage: count / body.pageInfo.pageShow, // 总页数
                    totalNum: count // 总条数
                }
            }
            if (body.pageInfo.nowPage) {
                return {
                    code: 0,
                    msg: '获取数据成功',
                    data: data
                }
            } else {
                return {
                    code: 401,
                    msg: '接口请求超时',
                    data: {}
                }
            }
        }
    }, {
        path: '/api/getSensitiveWords',
        method: 'get',
        handle ({ body }) {
            if (body.uuid) {
                let memberInfo = {};
                for (let i = 0; i < sensitiveWordsList.length; i++) {
                    if (Number(body.uuid) === sensitiveWordsList[i].uuid) {
                        memberInfo = sensitiveWordsList[i];
                        break;
                    }
                }

                return {
                    code: 0,
                    msg: '',
                    data: {
                        data: memberInfo,
                        return_code: 0
                    }
                }
            } else {
                return {
                    code: 401,
                    msg: '接口请求超时',
                    data: {}
                }
            }
        }
    },
    {

        path: '/api/addSensitiveWords',
        method: 'get',
        handle ({ body }) {
            if (body.userName) {
                sensitiveWordsList.unshift(body.formData);
                return {
                    code: 0,
                    msg: '',
                    data: {
                        return_code: 0
                    }
                }
            } else {
                return {
                    code: 401,
                    msg: '接口请求超时',
                    data: {}
                }
            }
        }
    }, {
        path: '/api/getBaseDataList',
        method: 'get',
        handle ({ body }) {
            const start = body.pageInfo.nowPage * body.pageInfo.pageShow - body.pageInfo.pageShow;
            const end = start + body.pageInfo.pageShow;
            let data = {
                return_code: 0,
                list: [...baseDataList].slice(start, end),
                pageInfo: {
                    nowPage: 1, // 当前页数
                    pageShow: body.pageInfo.pageShow, // 每页显示条数
                    totalPage: count / body.pageInfo.pageShow, // 总页数
                    totalNum: count // 总条数
                }
            }
            if (body.pageInfo.nowPage) {
                return {
                    code: 0,
                    msg: '获取数据成功',
                    data: data
                }
            } else {
                return {
                    code: 401,
                    msg: '接口请求超时',
                    data: {}
                }
            }
        }
    }, {
        path: '/api/getBaseData',
        method: 'get',
        handle ({ body }) {
            if (body.uuid) {
                let memberInfo = {};
                for (let i = 0; i < baseDataList.length; i++) {
                    if (Number(body.uuid) === baseDataList[i].uuid) {
                        memberInfo = baseDataList[i];
                        break;
                    }
                }
                return {
                    code: 0,
                    msg: '',
                    data: {
                        data: memberInfo,
                        return_code: 0
                    }
                }
            } else {
                return {
                    code: 401,
                    msg: '接口请求超时',
                    data: {}
                }
            }
        }
    },
    {
        path: '/api/addBaseData',
        method: 'get',
        handle ({ body }) {
            if (body.userName) {
                baseDataList.unshift(body.formData);
                return {
                    code: 0,
                    msg: '',
                    data: {
                        return_code: 0
                    }
                }
            } else {
                return {
                    code: 401,
                    msg: '接口请求超时',
                    data: {}
                }
            }
        }
    }, {
        path: '/api/getBenchmarkRoleList',
        method: 'get',
        handle ({ body }) {
            const start = body.pageInfo.nowPage * body.pageInfo.pageShow - body.pageInfo.pageShow;
            const end = start + body.pageInfo.pageShow;
            let data = {
                return_code: 0,
                list: [...benchmarkRoleList].slice(start, end),
                pageInfo: {
                    nowPage: 1, // 当前页数
                    pageShow: body.pageInfo.pageShow, // 每页显示条数
                    totalPage: count / body.pageInfo.pageShow, // 总页数
                    totalNum: count // 总条数
                }
            }
            if (body.pageInfo.nowPage) {
                return {
                    code: 0,
                    msg: '获取数据成功',
                    data: data
                }
            } else {
                return {
                    code: 401,
                    msg: '接口请求超时',
                    data: {}
                }
            }
        }
    }, {
        path: '/api/getBenchmarkRole',
        method: 'get',
        handle ({ body }) {
            if (body.uuid) {
                let memberInfo = {};
                for (let i = 0; i < benchmarkRoleList.length; i++) {
                    if (Number(body.uuid) === benchmarkRoleList[i].uuid) {
                        memberInfo = benchmarkRoleList[i];
                        break;
                    }
                }
                return {
                    code: 0,
                    msg: '',
                    data: {
                        data: memberInfo,
                        return_code: 0
                    }
                }
            } else {
                return {
                    code: 401,
                    msg: '接口请求超时',
                    data: {}
                }
            }
        }
    },
    {
        path: '/api/addBenchmarkRole',
        method: 'get',
        handle ({ body }) {
            if (body.userName) {
                benchmarkRoleList.unshift(body.formData);
                return {
                    code: 0,
                    msg: '',
                    data: {
                        return_code: 0
                    }
                }
            } else {
                return {
                    code: 401,
                    msg: '接口请求超时',
                    data: {}
                }
            }
        }
    }, {
        path: '/api/getJurisdiction',
        method: 'get',
        handle ({ body }) {
            if (body.uuid) {
                let memberInfo = {};
                for (let i = 0; i < jurisdictionList.length; i++) {
                    if (Number(body.uuid) === jurisdictionList[i].uuid) {
                        memberInfo = jurisdictionList[i];
                        break;
                    }
                }
                return {
                    code: 0,
                    msg: '',
                    data: {
                        data: memberInfo,
                        return_code: 0
                    }
                }
            } else {
                return {
                    code: 401,
                    msg: '接口请求超时',
                    data: {}
                }
            }
        }
    },
    {
        path: '/api/addJurisdiction',
        method: 'get',
        handle ({ body }) {
            if (body.userName) {
                jurisdictionList.unshift(body.formData);
                return {
                    code: 0,
                    msg: '',
                    data: {
                        return_code: 0
                    }
                }
            } else {
                return {
                    code: 401,
                    msg: '接口请求超时',
                    data: {}
                }
            }
        }
    }, {
        path: '/api/getMenuList',
        method: 'get',
        handle ({ body }) {
            const start = body.pageInfo.nowPage * body.pageInfo.pageShow - body.pageInfo.pageShow;
            const end = start + body.pageInfo.pageShow;
            let data = {
                return_code: 0,
                list: [...menuList].slice(start, end),
                pageInfo: {
                    nowPage: 1, // 当前页数
                    pageShow: body.pageInfo.pageShow, // 每页显示条数
                    totalPage: count / body.pageInfo.pageShow, // 总页数
                    totalNum: count // 总条数
                }
            }
            if (body.pageInfo.nowPage) {
                return {
                    code: 0,
                    msg: '获取数据成功',
                    data: data
                }
            } else {
                return {
                    code: 401,
                    msg: '接口请求超时',
                    data: {}
                }
            }
        }
    }, {
        path: '/api/getMenu',
        method: 'get',
        handle ({ body }) {
            if (body.uuid) {
                let memberInfo = {};
                for (let i = 0; i < menuList.length; i++) {
                    if (Number(body.uuid) === menuList[i].uuid) {
                        memberInfo = menuList[i];
                        break;
                    }
                }
                return {
                    code: 0,
                    msg: '',
                    data: {
                        data: memberInfo,
                        return_code: 0
                    }
                }
            } else {
                return {
                    code: 401,
                    msg: '接口请求超时',
                    data: {}
                }
            }
        }
    },
    {
        path: '/api/addMenu',
        method: 'get',
        handle ({ body }) {
            if (body.userName) {
                menuList.unshift(body.formData);
                return {
                    code: 0,
                    msg: '',
                    data: {
                        return_code: 0
                    }
                }
            } else {
                return {
                    code: 401,
                    msg: '接口请求超时',
                    data: {}
                }
            }
        }
    }, {
        path: '/api/getLogisticsSetupList',
        method: 'get',
        handle ({ body }) {
            const start = body.pageInfo.nowPage * body.pageInfo.pageShow - body.pageInfo.pageShow;
            const end = start + body.pageInfo.pageShow;
            let data = {
                return_code: 0,
                list: [...logisticsSetupList].slice(start, end),
                pageInfo: {
                    nowPage: 1, // 当前页数
                    pageShow: body.pageInfo.pageShow, // 每页显示条数
                    totalPage: count / body.pageInfo.pageShow, // 总页数
                    totalNum: count // 总条数
                }
            }
            if (body.pageInfo.nowPage) {
                return {
                    code: 0,
                    msg: '获取数据成功',
                    data: data
                }
            } else {
                return {
                    code: 401,
                    msg: '接口请求超时',
                    data: {}
                }
            }
        }
    }, {
        path: '/api/getLogisticsSetup',
        method: 'get',
        handle ({ body }) {
            if (body.uuid) {
                let memberInfo = {};
                for (let i = 0; i < logisticsSetupList.length; i++) {
                    if (Number(body.uuid) === logisticsSetupList[i].uuid) {
                        memberInfo = logisticsSetupList[i];
                        break;
                    }
                }
                return {
                    code: 0,
                    msg: '',
                    data: {
                        data: memberInfo,
                        return_code: 0
                    }
                }
            } else {
                return {
                    code: 401,
                    msg: '接口请求超时',
                    data: {}
                }
            }
        }
    },
    {
        path: '/api/addLogisticsSetup',
        method: 'get',
        handle ({ body }) {
            if (body.userName) {
                logisticsSetupList.unshift(body.formData);
                return {
                    code: 0,
                    msg: '',
                    data: {
                        return_code: 0
                    }
                }
            } else {
                return {
                    code: 401,
                    msg: '接口请求超时',
                    data: {}
                }
            }
        }
    }, {
        path: '/api/getBusinessCircleList',
        method: 'get',
        handle ({ body }) {
            const start = body.pageInfo.nowPage * body.pageInfo.pageShow - body.pageInfo.pageShow;
            const end = start + body.pageInfo.pageShow;
            let data = {
                return_code: 0,
                list: [...businessCircleList].slice(start, end),
                pageInfo: {
                    nowPage: 1, // 当前页数
                    pageShow: body.pageInfo.pageShow, // 每页显示条数
                    totalPage: count / body.pageInfo.pageShow, // 总页数
                    totalNum: count // 总条数
                }
            }
            if (body.pageInfo.nowPage) {
                return {
                    code: 0,
                    msg: '获取数据成功',
                    data: data
                }
            } else {
                return {
                    code: 401,
                    msg: '接口请求超时',
                    data: {}
                }
            }
        }
    }, {
        path: '/api/getBusinessCircle',
        method: 'get',
        handle ({ body }) {
            if (body.uuid) {
                let memberInfo = {};
                for (let i = 0; i < businessCircleList.length; i++) {
                    if (Number(body.uuid) === businessCircleList[i].uuid) {
                        memberInfo = businessCircleList[i];
                        break;
                    }
                }
                return {
                    code: 0,
                    msg: '',
                    data: {
                        data: memberInfo,
                        return_code: 0
                    }
                }
            } else {
                return {
                    code: 401,
                    msg: '接口请求超时',
                    data: {}
                }
            }
        }
    },
    {
        path: '/api/addBusinessCircle',
        method: 'get',
        handle ({ body }) {
            if (body.userName) {
                businessCircleList.unshift(body.formData);
                return {
                    code: 0,
                    msg: '',
                    data: {
                        return_code: 0
                    }
                }
            } else {
                return {
                    code: 401,
                    msg: '接口请求超时',
                    data: {}
                }
            }
        }
    }, {
        path: '/api/getProvinceList',
        method: 'get',
        handle ({ body }) {
            const start = body.pageInfo.nowPage * body.pageInfo.pageShow - body.pageInfo.pageShow;
            const end = start + body.pageInfo.pageShow;
            let data = {
                return_code: 0,
                list: [...provinceList].slice(start, end),
                pageInfo: {
                    nowPage: 1, // 当前页数
                    pageShow: body.pageInfo.pageShow, // 每页显示条数
                    totalPage: count / body.pageInfo.pageShow, // 总页数
                    totalNum: count // 总条数
                }
            }
            if (body.pageInfo.nowPage) {
                return {
                    code: 0,
                    msg: '获取数据成功',
                    data: data
                }
            } else {
                return {
                    code: 401,
                    msg: '接口请求超时',
                    data: {}
                }
            }
        }
    }, {
        path: '/api/getProvince',
        method: 'get',
        handle ({ body }) {
            if (body.uuid) {
                let memberInfo = {};
                for (let i = 0; i < provinceList.length; i++) {
                    if (Number(body.uuid) === provinceList[i].uuid) {
                        memberInfo = provinceList[i];
                        break;
                    }
                }
                return {
                    code: 0,
                    msg: '',
                    data: {
                        data: memberInfo,
                        return_code: 0
                    }
                }
            } else {
                return {
                    code: 401,
                    msg: '接口请求超时',
                    data: {}
                }
            }
        }
    },
    {
        path: '/api/addProvince',
        method: 'get',
        handle ({ body }) {
            if (body.userName) {
                provinceList.unshift(body.formData);
                return {
                    code: 0,
                    msg: '',
                    data: {
                        return_code: 0
                    }
                }
            } else {
                return {
                    code: 401,
                    msg: '接口请求超时',
                    data: {}
                }
            }
        }
    }, {
        path: '/api/getCityList',
        method: 'get',
        handle ({ body }) {
            const start = body.pageInfo.nowPage * body.pageInfo.pageShow - body.pageInfo.pageShow;
            const end = start + body.pageInfo.pageShow;
            let data = {
                return_code: 0,
                list: [...cityList].slice(start, end),
                pageInfo: {
                    nowPage: 1, // 当前页数
                    pageShow: body.pageInfo.pageShow, // 每页显示条数
                    totalPage: count / body.pageInfo.pageShow, // 总页数
                    totalNum: count // 总条数
                }
            }
            if (body.pageInfo.nowPage) {
                return {
                    code: 0,
                    msg: '获取数据成功',
                    data: data
                }
            } else {
                return {
                    code: 401,
                    msg: '接口请求超时',
                    data: {}
                }
            }
        }
    }, {
        path: '/api/getCity',
        method: 'get',
        handle ({ body }) {
            if (body.uuid) {
                let memberInfo = {};
                for (let i = 0; i < cityList.length; i++) {
                    if (Number(body.uuid) === cityList[i].uuid) {
                        memberInfo = cityList[i];
                        break;
                    }
                }
                return {
                    code: 0,
                    msg: '',
                    data: {
                        data: memberInfo,
                        return_code: 0
                    }
                }
            } else {
                return {
                    code: 401,
                    msg: '接口请求超时',
                    data: {}
                }
            }
        }
    },
    {
        path: '/api/addCity',
        method: 'get',
        handle ({ body }) {
            if (body.userName) {
                cityList.unshift(body.formData);
                return {
                    code: 0,
                    msg: '',
                    data: {
                        return_code: 0
                    }
                }
            } else {
                return {
                    code: 401,
                    msg: '接口请求超时',
                    data: {}
                }
            }
        }
    }, {
        path: '/api/getCountyList',
        method: 'get',
        handle ({ body }) {
            const start = body.pageInfo.nowPage * body.pageInfo.pageShow - body.pageInfo.pageShow;
            const end = start + body.pageInfo.pageShow;
            let data = {
                return_code: 0,
                list: [...countyList].slice(start, end),
                pageInfo: {
                    nowPage: 1, // 当前页数
                    pageShow: body.pageInfo.pageShow, // 每页显示条数
                    totalPage: count / body.pageInfo.pageShow, // 总页数
                    totalNum: count // 总条数
                }
            }
            if (body.pageInfo.nowPage) {
                return {
                    code: 0,
                    msg: '获取数据成功',
                    data: data
                }
            } else {
                return {
                    code: 401,
                    msg: '接口请求超时',
                    data: {}
                }
            }
        }
    }, {
        path: '/api/getCounty',
        method: 'get',
        handle ({ body }) {
            if (body.uuid) {
                let memberInfo = {};
                for (let i = 0; i < countyList.length; i++) {
                    if (Number(body.uuid) === countyList[i].uuid) {
                        memberInfo = countyList[i];
                        break;
                    }
                }
                return {
                    code: 0,
                    msg: '',
                    data: {
                        data: memberInfo,
                        return_code: 0
                    }
                }
            } else {
                return {
                    code: 401,
                    msg: '接口请求超时',
                    data: {}
                }
            }
        }
    },
    {
        path: '/api/addCounty',
        method: 'get',
        handle ({ body }) {
            if (body.userName) {
                countyList.unshift(body.formData);
                return {
                    code: 0,
                    msg: '',
                    data: {
                        return_code: 0
                    }
                }
            } else {
                return {
                    code: 401,
                    msg: '接口请求超时',
                    data: {}
                }
            }
        }
    }, {
        path: '/api/getPlatFormPowerMenuList',
        method: 'get',
        handle ({ body }) {
            const start = body.pageInfo.nowPage * body.pageInfo.pageShow - body.pageInfo.pageShow;
            const end = start + body.pageInfo.pageShow;
            let data = {
                return_code: 0,
                list: [...platFormPowerMenuList].slice(start, end),
                pageInfo: {
                    nowPage: 1, // 当前页数
                    pageShow: body.pageInfo.pageShow, // 每页显示条数
                    totalPage: count / body.pageInfo.pageShow, // 总页数
                    totalNum: count // 总条数
                }
            }
            if (body.pageInfo.nowPage) {
                return {
                    code: 0,
                    msg: '获取数据成功',
                    data: data
                }
            } else {
                return {
                    code: 401,
                    msg: '接口请求超时',
                    data: {}
                }
            }
        }
    }, {
        path: '/api/getPlatFormPowerMenu',
        method: 'get',
        handle ({ body }) {
            if (body.uuid) {
                let memberInfo = {};
                for (let i = 0; i < platFormPowerMenuList.length; i++) {
                    if (Number(body.uuid) === platFormPowerMenuList[i].uuid) {
                        memberInfo = platFormPowerMenuList[i];
                        break;
                    }
                }
                return {
                    code: 0,
                    msg: '',
                    data: {
                        data: memberInfo,
                        return_code: 0
                    }
                }
            } else {
                return {
                    code: 401,
                    msg: '接口请求超时',
                    data: {}
                }
            }
        }
    },
    {
        path: '/api/addPlatFormPowerMenu',
        method: 'get',
        handle ({ body }) {
            if (body.userName) {
                platFormPowerMenuList.unshift(body.formData);
                return {
                    code: 0,
                    msg: '',
                    data: {
                        return_code: 0
                    }
                }
            } else {
                return {
                    code: 401,
                    msg: '接口请求超时',
                    data: {}
                }
            }
        }
    }, {
        path: '/api/getPlatformPowerList',
        method: 'get',
        handle ({ body }) {
            const start = body.pageInfo.nowPage * body.pageInfo.pageShow - body.pageInfo.pageShow;
            const end = start + body.pageInfo.pageShow;
            let data = {
                return_code: 0,
                list: [...platformPowerList].slice(start, end),
                pageInfo: {
                    nowPage: 1, // 当前页数
                    pageShow: body.pageInfo.pageShow, // 每页显示条数
                    totalPage: count / body.pageInfo.pageShow, // 总页数
                    totalNum: count // 总条数
                }
            }
            if (body.pageInfo.nowPage) {
                return {
                    code: 0,
                    msg: '获取数据成功',
                    data: data
                }
            } else {
                return {
                    code: 401,
                    msg: '接口请求超时',
                    data: {}
                }
            }
        }
    }, {
        path: '/api/getPlatformPower',
        method: 'get',
        handle ({ body }) {
            if (body.uuid) {
                let memberInfo = {};
                for (let i = 0; i < platformPowerList.length; i++) {
                    if (Number(body.uuid) === platformPowerList[i].uuid) {
                        memberInfo = platformPowerList[i];
                        break;
                    }
                }
                return {
                    code: 0,
                    msg: '',
                    data: {
                        data: memberInfo,
                        return_code: 0
                    }
                }
            } else {
                return {
                    code: 401,
                    msg: '接口请求超时',
                    data: {}
                }
            }
        }
    },
    {
        path: '/api/addPlatformPower',
        method: 'get',
        handle ({ body }) {
            if (body.userName) {
                platformPowerList.unshift(body.formData);
                return {
                    code: 0,
                    msg: '',
                    data: {
                        return_code: 0
                    }
                }
            } else {
                return {
                    code: 401,
                    msg: '接口请求超时',
                    data: {}
                }
            }
        }
    },
    {
        path: '/api/getDepartmentList',
        method: 'get',
        handle ({ body }) {
            const start = body.pageInfo.nowPage * body.pageInfo.pageShow - body.pageInfo.pageShow;
            const end = start + body.pageInfo.pageShow;
            let data = {
                return_code: 0,
                list: [...departmentList].slice(start, end),
                pageInfo: {
                    nowPage: 1, // 当前页数
                    pageShow: body.pageInfo.pageShow, // 每页显示条数
                    totalPage: count / body.pageInfo.pageShow, // 总页数
                    totalNum: count // 总条数
                }
            }
            if (body.pageInfo.nowPage) {
                return {
                    code: 0,
                    msg: '获取数据成功',
                    data: data
                }
            } else {
                return {
                    code: 401,
                    msg: '接口请求超时',
                    data: {}
                }
            }
        }
    }, {
        path: '/api/getDepartment',
        method: 'get',
        handle ({ body }) {
            if (body.uuid) {
                let memberInfo = {};
                for (let i = 0; i < departmentList.length; i++) {
                    if (Number(body.uuid) === departmentList[i].uuid) {
                        memberInfo = departmentList[i];
                        break;
                    }
                }
                return {
                    code: 0,
                    msg: '',
                    data: {
                        data: memberInfo,
                        return_code: 0
                    }
                }
            } else {
                return {
                    code: 401,
                    msg: '接口请求超时',
                    data: {}
                }
            }
        }
    },
    {
        path: '/api/addDepartment',
        method: 'get',
        handle ({ body }) {
            if (body.userName) {
                departmentList.unshift(body.formData);
                return {
                    code: 0,
                    msg: '',
                    data: {
                        return_code: 0
                    }
                }
            } else {
                return {
                    code: 401,
                    msg: '接口请求超时',
                    data: {}
                }
            }
        }
    }, {
        path: '/api/getRoleList',
        method: 'get',
        handle ({ body }) {
            const start = body.pageInfo.nowPage * body.pageInfo.pageShow - body.pageInfo.pageShow;
            const end = start + body.pageInfo.pageShow;
            let data = {
                return_code: 0,
                list: [...roleList].slice(start, end),
                pageInfo: {
                    nowPage: 1, // 当前页数
                    pageShow: body.pageInfo.pageShow, // 每页显示条数
                    totalPage: count / body.pageInfo.pageShow, // 总页数
                    totalNum: count // 总条数
                }
            }
            if (body.pageInfo.nowPage) {
                return {
                    code: 0,
                    msg: '获取数据成功',
                    data: data
                }
            } else {
                return {
                    code: 401,
                    msg: '接口请求超时',
                    data: {}
                }
            }
        }
    }, {
        path: '/api/getRole',
        method: 'get',
        handle ({ body }) {
            if (body.uuid) {
                let memberInfo = {};
                for (let i = 0; i < roleList.length; i++) {
                    if (Number(body.uuid) === roleList[i].uuid) {
                        memberInfo = roleList[i];
                        break;
                    }
                }
                return {
                    code: 0,
                    msg: '',
                    data: {
                        data: memberInfo,
                        return_code: 0
                    }
                }
            } else {
                return {
                    code: 401,
                    msg: '接口请求超时',
                    data: {}
                }
            }
        }
    },
    {
        path: '/api/addRole',
        method: 'get',
        handle ({ body }) {
            if (body.userName) {
                roleList.unshift(body.formData);
                return {
                    code: 0,
                    msg: '',
                    data: {
                        return_code: 0
                    }
                }
            } else {
                return {
                    code: 401,
                    msg: '接口请求超时',
                    data: {}
                }
            }
        }
    },
    {
        path: '/api/getAdministratorsList',
        method: 'get',
        handle ({ body }) {
            const start = body.pageInfo.nowPage * body.pageInfo.pageShow - body.pageInfo.pageShow;
            const end = start + body.pageInfo.pageShow;
            let data = {
                return_code: 0,
                list: [...administratorsList].slice(start, end),
                pageInfo: {
                    nowPage: 1, // 当前页数
                    pageShow: body.pageInfo.pageShow, // 每页显示条数
                    totalPage: count / body.pageInfo.pageShow, // 总页数
                    totalNum: count // 总条数
                }
            }
            if (body.pageInfo.nowPage) {
                return {
                    code: 0,
                    msg: '获取数据成功',
                    data: data
                }
            } else {
                return {
                    code: 401,
                    msg: '接口请求超时',
                    data: {}
                }
            }
        }
    }, {
        path: '/api/getAdministrators',
        method: 'get',
        handle ({ body }) {
            if (body.uuid) {
                let memberInfo = {};
                for (let i = 0; i < administratorsList.length; i++) {
                    if (Number(body.uuid) === administratorsList[i].uuid) {
                        memberInfo = administratorsList[i];
                        break;
                    }
                }
                return {
                    code: 0,
                    msg: '',
                    data: {
                        data: memberInfo,
                        return_code: 0
                    }
                }
            } else {
                return {
                    code: 401,
                    msg: '接口请求超时',
                    data: {}
                }
            }
        }
    },
    {
        path: '/api/addAdministrators',
        method: 'get',
        handle ({ body }) {
            if (body.userName) {
                administratorsList.unshift(body.formData);
                return {
                    code: 0,
                    msg: '',
                    data: {
                        return_code: 0
                    }
                }
            } else {
                return {
                    code: 401,
                    msg: '接口请求超时',
                    data: {}
                }
            }
        }
    }, {
        path: '/api/getReasonMangeList',
        method: 'get',
        handle ({ body }) {
            const start = body.pageInfo.nowPage * body.pageInfo.pageShow - body.pageInfo.pageShow;
            const end = start + body.pageInfo.pageShow;
            let data = {
                return_code: 0,
                list: [...reasonMangeList].slice(start, end),
                pageInfo: {
                    nowPage: 1, // 当前页数
                    pageShow: body.pageInfo.pageShow, // 每页显示条数
                    totalPage: count / body.pageInfo.pageShow, // 总页数
                    totalNum: count // 总条数
                }
            }
            if (body.pageInfo.nowPage) {
                return {
                    code: 0,
                    msg: '获取数据成功',
                    data: data
                }
            } else {
                return {
                    code: 401,
                    msg: '接口请求超时',
                    data: {}
                }
            }
        }
    }, {
        path: '/api/getReasonMange',
        method: 'get',
        handle ({ body }) {
            if (body.uuid) {
                let memberInfo = {};
                for (let i = 0; i < reasonMangeList.length; i++) {
                    if (Number(body.uuid) === reasonMangeList[i].uuid) {
                        memberInfo = reasonMangeList[i];
                        break;
                    }
                }
                return {
                    code: 0,
                    msg: '',
                    data: {
                        data: memberInfo,
                        return_code: 0
                    }
                }
            } else {
                return {
                    code: 401,
                    msg: '接口请求超时',
                    data: {}
                }
            }
        }
    },
    {
        path: '/api/addReasonMange',
        method: 'get',
        handle ({ body }) {
            if (body.userName) {
                reasonMangeList.unshift(body.formData);
                return {
                    code: 0,
                    msg: '',
                    data: {
                        return_code: 0
                    }
                }
            } else {
                return {
                    code: 401,
                    msg: '接口请求超时',
                    data: {}
                }
            }
        }
    },
    {
        path: '/api/prohibitReasonMange',
        method: 'get',
        handle ({ body }) {
            if (body.uuid) {
                return {
                    code: 0,
                    msg: '',
                    data: {
                        return_code: 0
                    }
                }
            } else {
                return {
                    code: 401,
                    msg: '接口请求超时',
                    data: {}
                }
            }
        }
    }

]
